Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

deNetWinsock.hpp

Go to the documentation of this file.
00001 ///////////////////////////////////////////////////////////////////////////////
00002 /// @file deNetWinsock.hpp
00003 ///
00004 /// @brief 
00005 ///
00006 /// @author trajar
00007 ///
00008 /// This file is the intellectual property of Novus Delta, LLC.. Usage of the
00009 /// contents of this file is subject to the Destiny3D Member License which
00010 /// can be found at http://www.destiny3d.com.  Any other usage is prohibited.
00011 ///
00012 /// This file is distributed "AS IS" without warranty of any kind.  Novus
00013 /// Delta, LLC. does not guarantee the fitness of the contents of this file
00014 /// for any particular purpose.
00015 ///
00016 /// Copyright (C) 2001-2003 Novus Delta, LLC. All Rights Reserved.
00017 ///
00018 /// <hr>
00019 ///                                 Change History
00020 /// <hr>
00021 ///
00022 /// @date Jun 2002
00023 /// @author trajar
00024 /// @remarks Creation
00025 ///
00026 ///////////////////////////////////////////////////////////////////////////////
00027 
00028 #ifndef _DENETWINSOCK_HPP
00029 #define _DENETWINSOCK_HPP
00030 
00031 #ifndef     _DENET_HPP
00032  #include   "deNet.hpp"
00033 #endif
00034 
00035 #include    <WINSOCK2.H>
00036 
00037 //-------------------------------------------------------------
00038 // int GetWinsockErrorStr( int iError, char * outBuffer )
00039 //-------------------------------------------------------------
00040 DENET_API int GetWinsockErrorStr( int iError, char * outBuffer );
00041 
00042 //-------------------------------------------------------------
00043 // int GetHostAddressStr( char * outBuff )
00044 //-------------------------------------------------------------
00045 DENET_API int GetHostName( char * outBuff );
00046 
00047 //-------------------------------------------------------------
00048 // DWORD GetAddressFromStr( char * pHost )
00049 //-------------------------------------------------------------
00050 DENET_API DWORD GetAddressFromName( char * pHost );
00051     
00052 //-------------------------------------------------------------
00053 // DWORD GetHostAddress()
00054 //-------------------------------------------------------------
00055 DENET_API DWORD GetHostAddress(void);
00056 
00057 //-------------------------------------------------------------
00058 // DWORD GetHostPort()
00059 //-------------------------------------------------------------
00060 DENET_API DWORD GetHostPort(void);
00061 
00062 //-------------------------------------------------------------
00063 // deNetAddress GetHostNetAddress(void)
00064 //-------------------------------------------------------------
00065 DENET_API deNetAddress GetHostNetAddress(void);
00066 
00067 class   deTCPConnection;
00068 class   deTCPConnectionBin;
00069 
00070 // struct for overlapped I/O requests
00071 class deTCPOVERLAPPED
00072 {
00073 public:
00074 
00075     deTCPOVERLAPPED(void)
00076     {
00077         hSocket         = NULL;
00078         dwOrgSize       = 0;
00079         dwFlags         = 0;
00080         iNumBuffers     = 0;
00081         bSuccessful     = false;
00082         bCompleted      = false;
00083         iNetMsgID       = (WORD)-1;
00084     }
00085 
00086     ~deTCPOVERLAPPED(void)  { }
00087 
00088     WORD                    iNetMsgID;
00089     WSAOVERLAPPED           wsOverlapped;
00090     SOCKET                  hSocket;
00091     deTCPConnection *       pConn;
00092     deTCPConnectionBin *    pBin;
00093     DWORD                   dwOrgSize;
00094     DWORD                   dwFlags;
00095     WSABUF                  Buffer;
00096     int                     iNumBuffers;
00097     bool                    bSuccessful;
00098     bool                    bCompleted;
00099 };
00100 
00101 
00102 #endif

Generated on Mon Sep 12 19:58:32 2005 for Destiny3D by doxygen1.3-rc3